﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using AgileConfig.Server.Data.Entity;

namespace AgileConfig.Server.IService;

public interface ISysLogService : IDisposable
{
    Task<bool> AddSysLogAsync(SysLog log);

    Task<bool> AddRangeAsync(IEnumerable<SysLog> logs);


    Task<List<SysLog>> SearchPage(string appId, SysLogType? logType, DateTime? startTime, DateTime? endTime,
        int pageSize, int pageIndex);

    Task<long> Count(string appId, SysLogType? logType, DateTime? startTime, DateTime? endTime);
}